package ferp.core.state;

import ferp.core.game.Game;
import ferp.core.game.Input;
import ferp.core.game.Settings;
import ferp.core.player.Profile;

/**
 * User: olegs
 * Date: 10/12/12 8:43 PM
 */
public class ShowPool1 extends State
{
  @Override
  public int process(Game.Listener listener, Profile profile, Game g, Settings settings, Input input) throws Game.Error
  {
    // save the current state
    save(profile);

    // fire score event
    listener.onScore(g);
    // switch state
    g.set(State.showPool2);

    return Result.SHOW_OPTIONS;
  }
}
